from django.urls import path, re_path

from users import views

urlpatterns = [
    path('index/', views.register_view.as_view()),
    re_path(r'^login/$', views.login_view.as_view()),
    re_path(r'^formdata/$', views.formdataview.as_view()),
    re_path(r'^jsondata/$', views.jsondataview.as_view()),
    path('urldata/<int:age1>/', views.urldataview.as_view()),
    # path('mobiledata/<mobile:phone_num>', views.mobiledataview.as_view())
    re_path(r'^mobiledata/(?P<phone_num>1[3-9]\d{9})/$', views.mobiledataview.as_view()),
    re_path(r'^headview/$', views.request_head_view.as_view()),
]

